package com.skyable.common.utils;

import java.math.BigDecimal;

/**
 * @author GaoYuan
 * @title: NumberUtil
 * @projectName skyable-private-cloud
 * @description: TODO
 * @date 2021/1/2119:59
 */
public class NumberUtil {

    public static double defaultFormatNum(double number) {
        BigDecimal bigDecimal = new BigDecimal(number);
        return bigDecimal.setScale(2,   BigDecimal.ROUND_HALF_UP).doubleValue();
    }
}
